------------------------------------------------------------------------
--  Get reference for Bar
------------------------------------------------------------------------
local LibStub = _G.LibStub
local BarPlug = LibStub("AceAddon-3.0"):GetAddon("BarPlug")

------------------------------------------------------------------------
--  Setup for the panel
------------------------------------------------------------------------
BarPlug.panel = BarPlug:NewModule("BarPlugPanel")
BarPlug.panel.frame = CreateFrame("Frame", "BarPlugPanelFrame")
local panel = BarPlug.panel
local frame = panel.frame

function panel:OnInitialize()
end

function panel:OnEnable()
end

function panel:OnDisable()
end
--[[--------------------------------------------------------------------
local panelbg = {
	bgFile = "",
	edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
	tile = false,
	tileSize = 0,
	edgeSize = 16,
	insets = {
		left = 0,
		right = 0,
		top = 0,
		bottom = 0
	}
}
	
local function InitBar()
	local panel = CreateFrame("Frame", "BarPlugPanel", UIPanel)
	panel:SetFrameStrata("BACKGROUND")
	panel:SetWidth(GetScreenWidth() * UIParent:GetEffectiveScale())
	panel:SetHeight(32)
	panel:SetBackdrop(panelbg)
	panel:SetPoint("CENTER", UIParent, "CEMTER", 0, 0)

	panel.bg = panel:CreateTexture("BarPlugPanelBG", "PARENT")
	panel.bg:SetPoint("TOPLEFT", panel, "TOPLEFT", 4, -4)
	panel.bg:SetPoint("BOTTOMRIGHT", panel, "BOTTOMRIGHT", -4, 4)
	panel.bg:SetTexture(0.1, 0.1, 0.1, 0.8)

	BarPlug.panel = panel
	panel:Show()
end;

BarPlug.InitBar = InitBar
--------------------------------------------------------------------]]--
